package com.jiashihui.schema_lgorithm.schema.strategy;

/**
 * @author jiashihui
 * @describe: 乘法计算
 * @date 2019/03/14
 */
public class MultiplyImpl extends AbstractCalculator implements Calculator {

    @Override
    public int calculator(String exp) {
        int arrayInt[] = split(exp, "\\*");
        return arrayInt[0] * arrayInt[1];
    }
}
